import React, { Component } from 'react'

export default class Footer extends Component {
  render() {
      const { filter,setVisibleLists } = this.props
    return (
      <div>
        <span>Show</span>
        <button onClick={() => setVisibleLists('all')} disabled={filter === 'all'}>all</button>
        <button onClick={() => setVisibleLists('active')} disabled={filter === 'active'}>active</button>
        <button onClick={() => setVisibleLists('completed')} disabled={filter === 'completed'}>completed</button>
      </div>
    )
  }
}
